<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>

	<div>
	  <table>
	   <tr>
	   		<td class="td3" style="width:5px">&nbsp;</td><td class="sub-title">Bank Information</td>
	   </tr>
	  </table>
	</div>
	<div>

	<hr />

	<s:form action="save" namespace="/childBank" method="post" cssStyle="margin: 20px 0 0 50px" >

    <s:actionerror/>
    <s:hidden name="childBank.id" />
	<s:hidden name="childBank.child.id" value="%{childId}"/>
	<s:hidden name="operationMode"/>

    <s:select label="Bank Name" name="childBank.bankName" list="bankList"  listKey="listKey" listValue="listValue"  />
    <s:textfield name="childBank.branch" label="Branch" cssStyle="width:150px" />
    <s:textfield name="childBank.accountNumber" label="Account Number" cssStyle="width:200px" />
    <s:textfield name="childBank.openingAmount" label="Opening Amount" cssStyle="width:150px" tooltip="Number only"/>
    <sj:datepicker
		id="openedDate"
		name="childBank.openedDate"
		changeMonth="true"
		changeYear="true"
		value="%{childBank.openedDate.time}"
		label ="Opened Date"
		/>
      <s:textfield name="childBank.currentBalance" label="Balance" cssStyle="width:150px" tooltip="Number only"/>

	  <sj:submit value="SUBMIT" targets="childBankResultDiv" cssStyle="margin-left:125px"/>
	</s:form>

</div>